﻿@model Demo.FacebookLogin.Models.RegisterExternalLoginModel
@{
    ViewBag.Title = "Register";
}

<hgroup class="title">
    <h1>@ViewBag.Title.</h1>
    <h2>Associate your @ViewBag.ProviderDisplayName account.</h2>
    <h4><span style="color: red;">Please keep in mind that you can easily grab this information on the server side and send it directly to the database without ask the user for confirmation. The only reason we are doing it here is to show you the ind of information we are grabbing from the user's facebook profile.</span></h4>
</hgroup>

@using (Html.BeginForm("ExternalLoginConfirmation", "Account", new { ReturnUrl = ViewBag.ReturnUrl })) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Association Form</legend>
        <p>
            You've successfully authenticated with <strong>@ViewBag.ProviderDisplayName</strong>.
            Please enter a user name for this site below and click the Confirm button to finish
            logging in.
        </p>
        <ol>
            <li class="name">
                @Html.LabelFor(m => m.UserName)
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </li>
            <li class="name">
                @Html.LabelFor(m => m.FullName)
                @Html.TextBoxFor(m => m.FullName)
                @Html.ValidationMessageFor(m => m.FullName)
            </li>
            <li class="name">
                @Html.LabelFor(m => m.Gender)
                @Html.TextBoxFor(m => m.Gender)
                @Html.ValidationMessageFor(m => m.Gender)
            </li>
            <li class="name">
                @Html.LabelFor(m => m.UserUrl)
                @Html.TextBoxFor(m => m.UserUrl)
                @Html.ValidationMessageFor(m => m.UserUrl)
            </li>
        </ol>
        @Html.HiddenFor(m => m.ExternalLoginData)
        <input type="submit" value="Register" />
    </fieldset>
}
